package com.ChenYaRou.www.po;

import java.util.Objects;

/**
 * @ClassName Shop
 * @Description TODO
 * @Author 86183
 * @Date 2022/4/29 19:48
 * @Version 1.0
 **/
public class Shop {
    private Integer id;
    private String name;
    private String introduction;
    private Float money;
    private Integer ownerId;
    private String districtName;
    private String streetName;
    private String detailedAddress;
    private String state;
    private String picture;

    public Shop() {
    }

    public Shop(String name, String introduction, Float money,
                Integer ownerId, String districtName, String streetName,
                String detailedAddress, String state) {
        this.name = name;
        this.introduction = introduction;
        this.money = money;
        this.ownerId = ownerId;
        this.districtName = districtName;
        this.streetName = streetName;
        this.detailedAddress = detailedAddress;
        this.state = state;
    }


    @Override
    public String toString() {
        return "Shop{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", introduction='" + introduction + '\'' +
                ", money=" + money +
                ", ownerId=" + ownerId +
                ", districtName='" + districtName + '\'' +
                ", streetName='" + streetName + '\'' +
                ", detailedAddress='" + detailedAddress + '\'' +
                ", state='" + state + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        Shop shop = (Shop) o;
        return Objects.equals(id, shop.id) && Objects.equals(name, shop.name) &&
                Objects.equals(introduction, shop.introduction) && Objects.equals(money, shop.money) &&
                Objects.equals(ownerId, shop.ownerId) && Objects.equals(districtName, shop.districtName) &&
                Objects.equals(streetName, shop.streetName) &&
                Objects.equals(detailedAddress, shop.detailedAddress) &&
                Objects.equals(state, shop.state) && Objects.equals(picture, shop.picture);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, name, introduction, money, ownerId,
                districtName, streetName, detailedAddress, state, picture);
    }

    public String out() {
        return  "#name=" + name +
                ", introduction=" + introduction +
                ", ownerId=" + ownerId  +
                ", districtName=" + districtName +
                ", streetName=" + streetName +
                ", detailedAddress=" + detailedAddress ;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public Float getMoney() {
        return money;
    }

    public void setMoney(Float money) {
        this.money = money;
    }

    public Integer getOwnerName() {
        return ownerId;
    }

    public void setOwnerName(Integer ownerId) {
        this.ownerId = ownerId;
    }

    public String getDistrictName() {
        return districtName;
    }

    public void setDistrictName(String districtName) {
        this.districtName = districtName;
    }

    public String getStreetName() {
        return streetName;
    }

    public void setStreetName(String streetName) {
        this.streetName = streetName;
    }

    public String getDetailedAddress() {
        return detailedAddress;
    }

    public void setDetailedAddress(String detailedAddress) {
        this.detailedAddress = detailedAddress;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public Integer getOwnerId() {
        return ownerId;
    }

    public void setOwnerId(Integer ownerId) {
        this.ownerId = ownerId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }
}
